﻿namespace Photo.Core.Dtos.Entity
{
    /// <summary>
    /// 基础实体字段
    /// </summary>
    public class BaseEntity : PrimaryKey
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreationTime { get; set; }
        /// <summary>
        /// 创建人id
        /// </summary>
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreatorUserName { get; set; }
        /// <summary>
        /// 最近更新时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }
        /// <summary>
        /// 最近更新人id
        /// </summary>
        public string LastModifierUserId { get; set; }
        /// <summary>
        /// 最近更新人姓名
        /// </summary>
        public string LastModifierUserName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeletionTime { get; set; }
        /// <summary>
        /// 删除人id
        /// </summary>
        public string DeleterUserId { get; set; }
        /// <summary>
        /// 删除人姓名
        /// </summary>
        public string DeleterUserName { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDeleted { get; set; } = false;
    }
}
